 <?php
 $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
 if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
 
 $sql="select aid,update_time,title,logo,tinydesc from ey_archives where is_recom='1'  limit 0,4 ";
 $query = $mysqli->query($sql);
 $xiaobian=array();
 if($query->num_rows>0){
     while ($list=$query->fetch_assoc()){
         $list['update_time']=date('Y-m-d',$list['update_time']);
         $xiaobian[]=$list;
     }
 }
 
 $sql="select aid,title,logo from ey_archives where aid > 10  limit 0,50 ";
 $query = $mysqli->query($sql);
 $quanList=array();
 if($query->num_rows>0){
     while ($list=$query->fetch_assoc()){
         $quanList[]=$list;
     }
 }
 
 $sql="select id,typename,dirname from ey_arctype ";
 $query = $mysqli->query($sql);
 $catList=array();
 if($query->num_rows>0){
     while ($list=$query->fetch_assoc()){
         if(strpos($list['typename'],'en') !== false){}else{
             $catList[$list['id']]=$list;
         }
     }
 }
 
 $mysqli->close();
 
 
 include $cmsPath.'/template/pc/index.php';